<?php
/**
 * Template Name:feedrss
 */ 

include_once("RSS/RSS.class.php");

$name="游戏搜索引擎 - 搜索最好的小游戏，网页游戏，手机游戏";
$url="http://www.youxisoso.com";
$description = "游戏搜索引擎，Flash小游戏搜索, 网页游戏搜索, 手机游戏搜索。在这里寻找上万款游戏！";
$imgurl ="http://www.youxisoso.com/wp-content/themes/youxisoso/images/smalllogo.jpg";

$RSS= new RSS($name,$url,$description,$imgurl);


$allposts = get_posts("numberposts=20&orderby=date&order=DESC");
foreach ( $allposts as $post ) {
	$title = $post->post_title;
	$posturl = get_permalink ( $post->ID ); 
	$post_intro = mb_strimwidth ( strip_tags ( apply_filters ( 'the_content', $post->post_content ) ), 0, 100, "…" );
	$date = $post->post_date;
	$RSS->AddItem($title,$posturl,$post_intro,$date);
}

$RSS->Display();

?>